<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf模板</title>
</head>
<body>
    <h1>你好，Thymeleaf</h1>
    <h3 th:text="${name}">姓名占位</h3>
    <table border="1">
        <thead>
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
            </tr>
        </thead>
        <tbody>
        <tr th:each="stu:${students}">
            <td th:text="${stu.id}">1</td>
            <td th:text="${stu.name}">张三</td>
            <td th:text="${stu.gender}">男</td>
            <td th:text="${stu.age}">20</td>
        </tr>
        </tbody>
    </table>
    <img src="/static/code.png" alt="">
</body>
</html>